import request from '@/utils/request'

// 查询工单流程列表
export function selectFlowType(query) {
  return request({
    url: '/asset/flowType/select',
    method: 'get',
    params: query
  })
}

// 查询工单流程列表
export function listFlowType(query) {
  return request({
    url: '/asset/flowType/list',
    method: 'get',
    params: query
  })
}

// 查询工单流程详细
export function getFlowType(id) {
  return request({
    url: '/asset/flowType/' + id,
    method: 'get'
  })
}

// 新增工单流程
export function addFlowType(data) {
  return request({
    url: '/asset/flowType',
    method: 'post',
    data: data
  })
}

// 修改工单流程
export function updateFlowType(data) {
  return request({
    url: '/asset/flowType',
    method: 'put',
    data: data
  })
}

// 删除工单流程
export function delFlowType(id) {
  return request({
    url: '/asset/flowType/' + id,
    method: 'delete'
  })
}
